package com.chuangshu.chuangshuteam.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.chuangshu.chuangshuteam.dto.CompetitionsDTO;
import com.chuangshu.chuangshuteam.entity.Competitions;


public interface CompetitionService extends IService<Competitions> {
    /**
     * 保存比赛信息
     * @param competitionsDTO 比赛信息DTO
     * @return 是否保存成功
     */
    boolean saveCompetition(CompetitionsDTO competitionsDTO);

    /**
     * 更新比赛信息
     * @param id 比赛ID
     * @param competitionsDTO 比赛信息DTO
     * @return 是否更新成功
     */
    boolean updateCompetition(Long id, CompetitionsDTO competitionsDTO);
}